<template>
	<view>
		<nodata  v-if="dataList==0" ></nodata>
		<view class="cu-list menu-avatar solid-bottom">
			<view class="cu-item" v-for="(item,index) in dataList">
				<view class="cu-avatar round lg"
					:style="{backgroundImage:'url('+item.headimg+')'}">
				</view>
				<view class="content flex-sub">
					<view>{{item.realname.substring(0,1)}}公子-{{item.realname}}</view>
					<view class="text-gray text-sm flex justify-between">
						{{item.touxian1}}
					</view>
				</view>
						<view style="width: 295rpx;" v-if="index==0">
							<text class="btn-guanzhu">
								同意入群
							</text >
							<text class="btn-guanzhu">
								拒绝入群
							</text>
						</view>
						<view  v-else>
							<text>
								已拒绝
							</text>
						</view>
			</view>
		</view>
		<view class="noApply"  v-if="dataList==0" >
			<text>暂时还没有申请哦，快去邀请好友吧</text>
			<view class="bgTheme map">
				去邀请
			</view>
		</view>
	</view>
</template>

<script>
	var app = getApp();
	export default {
		data() {
			return {
				dataList:[]
			};
		},
		onLoad(e) {
			// this.TabCur = e.index
			this.getDataList()
		},
		methods: {
			getDataList(){
				app.post("ApiMingpian/mingpianlist",{jibie:this.jibie},(res)=>{
					console.log(res)
					if(res.status==1){
						this.dataList = res.data
					}
					// res.data[0].latitude=28.22778;
					// res.data[0].longitude= 112.93886;
					// this.positions = res.data
				})
			},
			}
	}
</script>

<style lang="less">
	.noApply{
		    width: 100%;
		    display: flex;
		    flex-direction: column;
		    align-items: center;
	}
	.map{
			color: #FFFFFF;
		    width: 200rpx;
		    height: 80rpx;
		    display: flex;
		    justify-content: center;
		    align-items: center;
			border-radius: 80rpx;
			margin-top: 50rpx;
		}
		.btn-guanzhu{
			border:1rpx solid #d4d4d4;
			border-radius: 50rpx;
			padding: 10rpx 15rpx;
			font-size: 0.8rem;
			margin: 0 2%;
		}
</style>
